/**
 * Huisou.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */

package com.chenzehe.zdmya.service;

import org.springframework.web.multipart.MultipartFile;

import com.chenzehe.zdmya.domain.OperatePoint;
import com.chenzehe.zdmya.domain.User;

/**
 * @description
 * 
 * @author chenzehe
 * @email hljuczh@163.com
 * @create 2012-8-14 下午08:59:54
 */

public interface IUserService {
	void save(User user);

	User findUniqueBy(String propertyName, Object value);

	User login(User user);

	User getUserById(int uid);

	int updatePassword(User user);

	int updateUsername(User user);

	int updateUsernameAndPassword(User user);

	void operatePoint(int userId, OperatePoint operatePoint);

	String uploadAvatar(MultipartFile file, User user);

	int updateAtavar(String avatar, int userId);
}
